package com.bawei.module_motocircle.model

/**
 * @author yaotianxue
 * @description
 * @date 2025/5/29
 */

enum class MotoCircleNavigationEnum(val defaultStatus:Int,val navId: Long, val sort: Int, val title: String, val type: Int) {
    HOT(0,10001, 0, "热门", type = 1),
    TOPIC(1,10002, 1, "帖子", type = 2),
    INFORMATION(0,10003, 2, "资讯", type = 3),
    FOLLOW(0,10004, 3, "关注", type = 4),
}

data class MotoCircleNavigationItem(
    val defaultStatus: Int? = null, //一级导航默认选中
    val modelList: MutableList<ModelItem>? = null, //二级导航目录
    val navigationId: String = "",
    val sort: Int,//顺序
    val status: Int,//状态 0不可用 1可用
    val title: String,
    val type: Int,
    var value: String
)



data class ModelItem(
    var isSeries: Boolean = false,
    val modelId: String = "",
    val name: String = "-",
    var checked: Boolean = false, //是否选中
    var last: Boolean = false
) {
    override fun equals(other: Any?): Boolean {
        return (other is ModelItem) && (this.modelId == other.modelId && this.name == other.name)
    }

    override fun hashCode(): Int {
        var result = name.hashCode()
        result = 31 * result + modelId.hashCode()
        return result
    }
}